Skip to content

[2.7] bpo-35194: Fix a wrong constant in cp932 codec (GH-10420)#10433

Merged
serhiy-storchaka merged 1 commit into
python:2.7from
izbyshev:backport-7a69cf4-2.7
Nov 10, 2018
Merged

[2.7] bpo-35194: Fix a wrong constant in cp932 codec (GH-10420)#10433
serhiy-storchaka merged 1 commit into
python:2.7from
izbyshev:backport-7a69cf4-2.7

Conversation

@izbyshev

@izbyshev izbyshev commented Nov 9, 2018

Copy link
Copy Markdown
Contributor

This typo doesn't affect the result because wrong bits are discarded
on implicit conversion to unsigned char, but it trips UBSan
with -fsanitize=implicit-integer-truncation.

https://bugs.python.org/issue35194.
(cherry picked from commit 7a69cf4)

Co-authored-by: Alexey Izbyshev izbyshev@ispras.ru

https://bugs.python.org/issue35194

This typo doesn't affect the result because wrong bits are discarded
on implicit conversion to unsigned char, but it trips UBSan
with -fsanitize=implicit-integer-truncation.

https://bugs.python.org/issue35194.
(cherry picked from commit 7a69cf4)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants